package studay.factory.ali;

import studay.factory.OrderFactory;
import studay.factory.PayFactory;
import studay.factory.RefundFactory;

/**
 * @program: 设计模式
 * @description: 实现订单工厂
 * @author: Tom
 * @create: 2022-01-05 22:07
 **/
public class AliOrderFactory implements OrderFactory {
    @Override
    public PayFactory createPay() {
        return new AliPay();
    }

    @Override
    public RefundFactory createRefund() {
        return new AliRefund();
    }
}
